{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nimport { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled\n  } = token;\n  return {\n    [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      [componentCls]: {\n        outline: 0,\n        \"input[type='file']\": {\n          cursor: 'pointer'\n        }\n      },\n      [`${componentCls}-select`]: {\n        display: 'inline-block'\n      },\n      [`${componentCls}-disabled`]: {\n        color: colorTextDisabled,\n        cursor: 'not-allowed'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Upload', token => {\n  const {\n    fontSizeHeading3,\n    fontSize,\n    lineHeight,\n    lineWidth,\n    controlHeightLG\n  } = token;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  const uploadToken = mergeToken(token, {\n    uploadThumbnailSize: fontSizeHeading3 * 2,\n    uploadProgressOffset: listItemHeightSM / 2 + lineWidth,\n    uploadPicCardSize: controlHeightLG * 2.55\n  });\n  return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genDraggerStyle","genListStyle","genMotionStyle","genPictureCardStyle","genPictureStyle","genRtlStyle","resetComponent","genCollapseMotion","genBaseStyle","token","componentCls","colorTextDisabled","Object","assign","outline","cursor","display","color","fontSizeHeading3","fontSize","lineHeight","lineWidth","controlHeightLG","listItemHeightSM","Math","round","uploadToken","uploadThumbnailSize","uploadProgressOffset","uploadPicCardSize"],"sources":["/data/messenger.client/node_modules/antd/es/upload/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nimport { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled\n  } = token;\n  return {\n    [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      [componentCls]: {\n        outline: 0,\n        \"input[type='file']\": {\n          cursor: 'pointer'\n        }\n      },\n      [`${componentCls}-select`]: {\n        display: 'inline-block'\n      },\n      [`${componentCls}-disabled`]: {\n        color: colorTextDisabled,\n        cursor: 'not-allowed'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Upload', token => {\n  const {\n    fontSizeHeading3,\n    fontSize,\n    lineHeight,\n    lineWidth,\n    controlHeightLG\n  } = token;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  const uploadToken = mergeToken(token, {\n    uploadThumbnailSize: fontSizeHeading3 * 2,\n    uploadProgressOffset: listItemHeightSM / 2 + lineWidth,\n    uploadPicCardSize: controlHeightLG * 2.55\n  });\n  return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n});"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,eAAe,MAAM,WAAW;AACvC,OAAOC,YAAY,MAAM,QAAQ;AACjC,OAAOC,cAAc,MAAM,UAAU;AACrC,SAASC,mBAAmB,EAAEC,eAAe,QAAQ,WAAW;AAChE,OAAOC,WAAW,MAAM,OAAO;AAC/B,SAASC,cAAc,QAAQ,aAAa;AAC5C,SAASC,iBAAiB,QAAQ,oBAAoB;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